﻿namespace Manhua3.SQLiteTable
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Manhua3.Common;

    [SQLite.Table("chapters")]
    public class SQLiteChapter : BindableBase
    {
        private int _id;

        [SQLite.AutoIncrement]
        [SQLite.PrimaryKey]
        [SQLite.Column("id")]
        public int Id { get { return this._id; } set { this.SetProperty(ref this._id, value); } }

        private int _comicId;

        [SQLite.Column("comic_id")]
        [SQLite.Indexed]
        public int ComicId { get { return this._comicId; } set { this.SetProperty(ref this._comicId, value); } }

        private string _token;

        [SQLite.Column("token")]
        [SQLite.Indexed]
        public string Token { get { return this._token; } set { this.SetProperty(ref this._token, value); } }

        private string _title;

        [SQLite.Column("title")]
        public string Title { get { return this._title; } set { this.SetProperty(ref this._title, value); } }

        private int _totalPage;

        [SQLite.Column("total_page")]
        public int TotalPage { get { return this._totalPage; } set { this.SetProperty(ref this._totalPage, value); } }

        private string _url;

        [SQLite.Column("url")]
        public string Url { get { return this._url; } set { this.SetProperty(ref this._url, value); } }

        private DateTime _updated;

        [SQLite.Column("updated")]
        public DateTime Updated { get { return this._updated; } set { this.SetProperty(ref this._updated, value); } }
    }
}